home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: Bruce Stephens <bruce@liv.ac.uk>
- Newsgroups: comp.lang.c,comp.lang.c.moderated
- Subject: Re: Can someone tell me why C can't support the following
- Date: 17 Feb 1996 12:07:30 -0600
- Organization: IASC, University of Liverpool
- Sender: clc@solutions.solon.com
- Approved: clc@solutions.solon.com
- Message-ID: <4g55h2$b1b@solutions.solon.com>
- References: <4g27n5$qa4@solutions.solon.com>
- NNTP-Posting-Host: solutions.solon.com
- X-Newsreader: Gnus v5.0.12
-
- >>>>> "Alan" == Alan Krantz <atk@mathcs.emory.edu> writes:
-
- > I know the following is illegal but I would really really like to
- > know why C can't support the following construct:
-
- I don't know why standard C doesn't allow this. Probably just
- simplicity: there are lots of possibly worthy additions, and the
- committees have only so much time to discuss them all. For what it's
- worth, GNU C supports the following:
-
- struct _mytbl {
- char *str;
- int *data;
- } mytbl[] = {{"Not Defined", (int []){0}},
- {"Square", (int []){1,2,3,4,0}},
- {"Circle", (int []){1,2,0}},
- };
- --
- Bruce Institute of Advanced Scientific Computation
- bruce@liverpool.ac.uk University of Liverpool
- http://supr.scm.liv.ac.uk/~bruce/
-